#ifndef BASEFRAMEWORK_H
#define BASEFRAMEWORK_H

#include <QWidget>
#include <QMouseEvent>
#include <QDebug>
#include <QPoint>
#include <QRect>
#include "loginwidget.h"
#include "statusbar.h"
#include "titlebar.h"
#include "uart.h"
#include "registerwidget.h"
#include "getbackpasswordwidget.h"
#include "mainsystemwidget.h"
#include "usermanager.h"

namespace Ui {
class BaseFrameWork;
}

class BaseFrameWork : public QWidget
{
    Q_OBJECT

public:
    explicit BaseFrameWork(QWidget *parent = nullptr);
    ~BaseFrameWork();
    void areaMovable(const QRect rect);


protected:
    void mousePressEvent(QMouseEvent *) override;
    void mouseMoveEvent(QMouseEvent *) override;
    void mouseReleaseEvent(QMouseEvent *) override;

private:
    bool m_isPressed;
    QPoint m_point;
    QRect m_areaMovable;
};

#endif // BASEFRAMEWORK_H
